package com.qf.controller;

import org.apache.shiro.authz.UnauthorizedException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author H
 * @create 2020-10-15 1:13
 * @Description:
 */

@ControllerAdvice
@ResponseBody
public class ExceptionController {

    @ExceptionHandler(value = UnauthorizedException.class)
    public String ex() {
        return "noper";
    }
}
